import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui'
import VueRouter from "vue-router";
import Router from './router'
import {
  app
} from './global/global.js'

import 'element-ui/lib/theme-chalk/index.css';
import 'bootstrap/dist/css/bootstrap.min.css';
import '../src/assets/iconfont.css'
import '../src/assets/rebuild.css'
import '../src/assets/fake'
import 'animate.css';

Vue.config.productionTip = false

const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}

Vue.use(ElementUI).use(VueRouter).use(app)

new Vue({
  render: h => h(App),
  router: Router,
}).$mount('#app')